﻿using STHPMS1.ICore.I_Entity.Info;
using STHPMS1.ICore.I_Entity.Stmpms1;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace STHPMS1.ICore.I_BLL.Bus
{
    public interface IE_EvaluBill : IBll
    {
        void Save<T>(T entity) 
            where T:class ,IE_Evalu;

        void Remove(IE_Evalu entity);

        IEnumerable<T> Get<T>(Expression<Func<T, bool>> predicate, IPagingInfo info)
            where T : class, IE_Evalu;

        void Insert(string inspecid, string rdwayid, string searchvalue);

        //List<string> GetRoadnetName();
        //List<string> GetYear();
        
        //double? GetLenght(string roadnetname, string year);
        //double? GetAvageMQI(string roadnetname, string year);
        //double? GetLenght(string roadnetname, string year, string searchvalue);


        void Save(string inspecid, string rdwayid, string searchvalue);


        /// <summary>
        /// 获取评定长度
        /// </summary>
        /// <param name="inspecid">评定名称</param>
        /// <param name="rdwayid">路线ID</param>
        /// <param name="searchvalues">查询条件</param>
        /// <returns></returns>
        double? GetLenght(string inspecid, string rdwayid, string searchvalues);
        /// <summary>
        /// 获取MQI的平均值
        /// </summary>
        /// <param name="inspecid">评定名称</param>
        /// <param name="rdwayid">路线ID</param>
        /// <param name="searchvalues">查询条件</param>
        /// <returns></returns>
        double? GetAverage(string inspecid, string rdwayid, string searchvalues);

    }
}
